export default [
  {
    path: '/login',
    name: 'login',
    component: resolve => require(['@views/login/login.vue'], resolve),
    meta: { title: '登录' }
  },
  {
    path: '/',
    name: 'main',
    component: (resolve) => require(['@views/main.vue'], resolve),
    redirect: '/home',
    meta: {
      title: 'vue-demo-collections'
    },
    children: [
      {
        path: 'home',
        name: 'home',
        component: (resolve) => require(['@views/home/index.vue'], resolve),
        meta: {
          title: '首页'
        }
      },{
        path: 'enviroment',
        component: () => import('@/views/enviroment'),
        name: 'enviroment',
        meta: { title: '环境', keepAlive: false, cache: false }
      }, {
        path: 'software',
        component: () => import('@/views/software'),
        name: 'software',
        meta: { title: '软件包', keepAlive: false }
      }, {
        path: 'license',
        component: () => import('@/views/license'),
        name: 'license',
        meta: { title: 'License', keepAlive: false },
        children: [

        ]
      }
    ]
  }
  // {
  //   path: '/401',
  //   name: 'Error401',
  //   component: resolve => require(['@views/error-page/Error401.vue'], resolve)
  // },
  // {
  //   path: '/500',
  //   name: 'Error500',
  //   component: resolve => require(['@views/error-page/Error500.vue'], resolve)
  // },
  // {
  //   path: '/404',
  //   name: 'Error404',
  //   component: resolve => require(['@views/error-page/Error404.vue'], resolve)
  // }
]
